home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / ROMDefs.p < prev    next >
Text File  |  1996-05-01  |  10KB  |  255 lines

  1. {
  2.      File:        ROMDefs.p
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT ROMDefs;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __ROMDEFS__}
  28. {$SETC __ROMDEFS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ROMDefsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34.  
  35. {$PUSH}
  36. {$ALIGN MAC68K}
  37. {$LibExport+}
  38.  
  39.  
  40. CONST
  41.     appleFormat                    = 1;                            { Format of Declaration Data (IEEE will assign real value) }
  42.     romRevision                    = 1;                            { Revision of Declaration Data Format }
  43.     romRevRange                    = 9;                            { Revision of Declaration Data Format [1..9] }
  44.     testPattern                    = 1519594439;                    { FHeader long word test pattern }
  45.     sCodeRev                    = 2;                            { Revision of code (For sExec) }
  46.     sExec2                        = 2;
  47.     sCPU68000                    = 1;                            { CPU type = 68000 }
  48.     sCPU68020                    = 2;                            { CPU type = 68020 }
  49.     sCPU68030                    = 3;                            { CPU type = 68030 }
  50.     sCPU68040                    = 4;                            { CPU type = 68040 }
  51.     sMacOS68000                    = 1;                            { Mac OS, CPU type = 68000 }
  52.     sMacOS68020                    = 2;                            { Mac OS, CPU type = 68020 }
  53.     sMacOS68030                    = 3;                            { Mac OS, CPU type = 68030 }
  54.     sMacOS68040                    = 4;                            { Mac OS, CPU type = 68040 }
  55.     board                        = 0;                            { Board sResource - Required on all boards }
  56.     displayVideoAppleTFB        = 16843009;                        { Video with Apple parameters for TFB card. }
  57.     displayVideoAppleGM            = 16843010;                        { Video with Apple parameters for GM card. }
  58.     networkEtherNetApple3Com    = 33620225;                        { Ethernet with apple parameters for 3-Comm card. }
  59.     testSimpleAppleAny            = -2147417856;                    { A simple test sResource. }
  60.     endOfList                    = 255;                            { End of list }
  61.     defaultTO                    = 100;                            { 100 retries. }
  62.  
  63.                                                                 {  sResource flags for sRsrc_Flags  }
  64.     fOpenAtStart                = 1;                            {  set => open the driver at start time, else do not  }
  65.     f32BitMode                    = 2;                            {  set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54)  }
  66.  
  67.     sRsrcType                    = 1;                            { Type of sResource }
  68.     sRsrcName                    = 2;                            { Name of sResource }
  69.     sRsrcIcon                    = 3;                            { Icon }
  70.     sRsrcDrvrDir                = 4;                            { Driver directory }
  71.     sRsrcLoadDir                = 5;                            { Load directory }
  72.     sRsrcBootRec                = 6;                            { sBoot record }
  73.     sRsrcFlags                    = 7;                            { sResource Flags }
  74.     sRsrcHWDevId                = 8;                            { Hardware Device Id }
  75.     minorBaseOS                    = 10;                            { Offset to base of sResource in minor space. }
  76.     minorLength                    = 11;                            { Length of sResource's address space in standard slot space. }
  77.     majorBaseOS                    = 12;                            { Offset to base of sResource in Major space. }
  78.     majorLength                    = 13;                            { Length of sResource in super slot space. }
  79.     sRsrcTest                    = 14;                            { sBlock diagnostic code }
  80.     sRsrccicn                    = 15;                            { Color icon }
  81.     sRsrcicl8                    = 16;                            { 8-bit (indexed) icon }
  82.     sRsrcicl4                    = 17;                            { 4-bit (indexed) icon }
  83.     sDRVRDir                    = 16;                            { sDriver directory }
  84.     sGammaDir                    = 64;                            { sGamma directory }
  85.     sRsrcVidNames                = 65;                            { Video mode name directory }
  86.     sRsrcDock                    = 80;                            { spID for Docking Handlers }
  87.     sDiagRec                    = 85;                            { spID for board diagnostics }
  88.     sVidAuxParams                = 123;                            { more video info for Display Manager -- timing information }
  89.     sDebugger                    = 124;                            { DatLstEntry for debuggers indicating video anamolies }
  90.     sVidAttributes                = 125;                            { video attributes data field (optional,word) }
  91.     fLCDScreen                    = 0;                            {  bit 0 - when set is LCD, else is CRT }
  92.     fBuiltInDisplay                = 1;                            {       1 - when set is built-in (in the box) display, else not }
  93.     fDefaultColor                = 2;                            {       2 - when set display prefers multi-bit color, else gray }
  94.     fActiveBlack                = 3;                            {       3 - when set black on display must be written, else display is naturally black }
  95.     fDimMinAt1                    = 4;                            {       4 - when set should dim backlight to level 1 instead of 0 }
  96.     fBuiltInDetach                = 4;                            {       4 - when set is built-in (in the box), but detaches }
  97.     sVidParmDir                    = 126;
  98.     sBkltParmDir                = 140;                            { directory of backlight tables }
  99.     stdBkltTblSize                = 36;                            { size of ``standard'' 0..31-entry backlight table }
  100.     sSuperDir                    = 254;
  101.  
  102. {  =======================================================================     }
  103. {  sResource types                                                             }
  104. {  =======================================================================     }
  105.     catBoard                    = $0001;                        { Category for board types. }
  106.     catTest                        = $0002;                        { Category for test types -- not used much. }
  107.     catDisplay                    = $0003;                        { Category for display (video) cards. }
  108.     catNetwork                    = $0004;                        { Category for Networking cards. }
  109.     catScanner                    = $0008;                        { scanners bring in data somehow }
  110.     catCPU                        = $000A;
  111.     catIntBus                    = $000C;
  112.     catProto                    = $0011;
  113.     catDock                        = $0020;                        { <Type> }
  114.     typeBoard                    = $0000;
  115.     typeApple                    = $0001;
  116.     typeVideo                    = $0001;
  117.     typeEtherNet                = $0001;
  118.     typeStation                    = $0001;
  119.     typeDesk                    = $0002;
  120.     typeTravel                    = $0003;
  121.     typeDSP                        = $0004;
  122.     typeXPT                        = $000B;
  123.     typeSIM                        = $000C;
  124.     typeDebugger                = $0100;
  125.     type68000                    = $0002;
  126.     type68020                    = $0003;
  127.     type68030                    = $0004;
  128.     type68040                    = $0005;
  129.     type601                        = $0025;
  130.     type603                        = $002E;
  131.     typeAppleII                    = $0015;                        { Driver Interface : <id.SW> }
  132.     drSwMacCPU                    = 0;
  133.     drSwAppleIIe                = $0001;
  134.     drSwApple                    = 1;                            { To ask for or define an Apple-compatible SW device. }
  135.     drSwMacsBug                    = $0104;
  136.     drSwDepewEngineering        = $0101;                        { Driver Interface : <id.SW><id.HW> }
  137.     drHwTFB                        = 1;                            { HW ID for the TFB (original Mac II) video card. }
  138.     drHw3Com                    = 1;                            { HW ID for the Apple EtherTalk card. }
  139.     drHwBSC                        = 3;
  140.     drHwGemini                    = 1;
  141.     drHwDeskBar                    = 1;
  142.     drHwATT3210                    = $0001;
  143.     drHwBootBug                    = $0100;
  144.     drHwMicroDock                = $0100;                        {  video hardware id's  - <catDisplay><typVideo> }
  145.     drHwRBV                        = $0018;
  146.     drHwJMFB                    = $0019;
  147.     drHwElsie                    = $001A;
  148.     drHwTim                        = $001B;
  149.     drHwDAFB                    = $001C;
  150.     drHwGSC                        = $001E;
  151.     drHwDAFBPDS                    = $001F;
  152.     drHWVSC                        = $0020;
  153.     drHwApollo                    = $0021;
  154.     drHwSonora                    = $0022;
  155.     drHwReserved2                = $0023;
  156.     drHwColumbia                = $0024;
  157.     drHwCivic                    = $0025;
  158.     drHWPBLCD                    = $0027;
  159.     drHWCSC                        = $0028;
  160.     drHwJET                        = $0029;
  161.     drHWMEMCjr                    = $002A;
  162.     drHwValkyrie                = $002E;
  163.     drHwKeystone                = $002F;
  164.     drHWATI                        = $0055;                        {  other drHW id's for built-in functions }
  165.     drHwSonic                    = $0110;
  166.     drHwMace                    = $0114;
  167.     drHwDblExp                    = $0001;                        {  CPU board IDs - <catBoard> <typBoard> <0000> <0000> }
  168.     MIIBoardId                    = $0010;                        { Mac II Board ID }
  169.     ciVidBoardID                = $001F;                        { Aurora25 board ID }
  170.     CX16VidBoardID                = $0020;                        { Aurora16 board ID }
  171.     MIIxBoardId                    = $0021;                        { Mac IIx Board ID }
  172.     SE30BoardID                    = $0022;                        { Mac SE/30 Board ID }
  173.     MIIcxBoardId                = $0023;                        { Mac IIcx Board ID }
  174.     MIIfxBoardId                = $0024;                        { F19 board ID }
  175.     EricksonBoardID                = $0028;
  176.     ElsieBoardID                = $0029;
  177.     TIMBoardID                    = $002A;
  178.     EclipseBoardID                = $002B;
  179.     SpikeBoardID                = $0033;
  180.     DBLiteBoardID                = $0035;
  181.     ZydecoBrdID                    = $0036;
  182.     ApolloBoardID                = $0038;
  183.     PDMBrdID                    = $0039;
  184.     VailBoardID                    = $003A;
  185.     WombatBrdID                    = $003B;
  186.     ColumbiaBrdID                = $003C;
  187.     CycloneBrdID                = $003D;
  188.     CompanionBrdID                = $003E;
  189.     DartanianBoardID            = $0040;
  190.     DartExtVidBoardID            = $0046;
  191.     HookBoardID                    = $0047;                        { Hook internal video board ID }
  192.     EscherBoardID                = $004A;                        { Board ID for Escher (CSC) }
  193.     POBoardID                    = $004D;                        { Board ID for Primus/Optimus/Aladdin }
  194.     TempestBrdID                = $0050;                        { Non-official Board ID for Tempest }
  195.     BlackBirdBdID                = $0058;                        { Board ID for BlackBird }
  196.     BBExtVidBdID                = $0059;                        { Board ID for BlackBird built-in external video }
  197.     YeagerBoardID                = $005A;                        { Board ID for Yeager }
  198.     BBEtherNetBdID                = $005E;                        { Board ID for BlackBird Ethernet board }
  199.     TELLBoardID                    = $0065;                        { Board ID for TELL (Valkyrie) }
  200.     MalcolmBoardID                = $065E;                        { Board ID for Malcolm }
  201.     AJBoardID                    = $065F;                        { Board ID for AJ }
  202.     M2BoardID                    = $0660;                        { Board ID for M2 }
  203.     OmegaBoardID                = $0661;                        { Board ID for Omega }
  204.                                                                 {  other board IDs }
  205.     BoardIDDblExp                = $002F;
  206.     DAFBPDSBoardID                = $0037;
  207.     MonetBoardID                = $0048;
  208.     SacSONIC16BoardID            = $004E;
  209.     SacSONIC32BoardID            = $004F;                        {  CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU> }
  210.     drHWMacII                    = $0001;                        { Mac II hw ID }
  211.     drHwMacIIx                    = $0002;                        { Mac IIx hw ID }
  212.     drHWSE30                    = $0003;                        { Mac SE/30 hw ID }
  213.     drHwMacIIcx                    = $0004;                        { Mac IIcx hw ID }
  214.     drHWMacIIfx                    = $0005;                        { Mac IIfx hw ID }
  215.     drHWF19                        = $0005;                        { F19 hw ID }
  216.     sBlockTransferInfo            = 20;                            { general slot block xfer info }
  217.     sMaxLockedTransferCount        = 21;                            { slot max. locked xfer count }
  218.     boardId                        = 32;                            { Board Id }
  219.     pRAMInitData                = 33;                            { sPRAM init data }
  220.     primaryInit                    = 34;                            { Primary init record }
  221.     timeOutConst                = 35;                            { Time out constant }
  222.     vendorInfo                    = 36;                            { Vendor information List. See Vendor List, below }
  223.     boardFlags                    = 37;                            { Board Flags }
  224.     secondaryInit                = 38;                            { Secondary init record/code }
  225.                                                                 {  The following Id's are associated with all CPU sResources. }
  226.     MajRAMSp                    = 129;                            { ID of Major RAM space. }
  227.     MinROMSp                    = 130;                            { ID of Minor ROM space. }
  228.     vendorId                    = 1;                            { Vendor Id }
  229.     serialNum                    = 2;                            { Serial number }
  230.     revLevel                    = 3;                            { Revision level }
  231.     partNum                        = 4;                            { Part number }
  232.     date                        = 5;                            { Last revision date of the card }
  233.  
  234.     testByte                    = 32;                            { Test byte. }
  235.     testWord                    = 33;                            { 0021 }
  236.     testLong                    = 34;                            { Test Long. }
  237.     testString                    = 35;                            { Test String. }
  238.  
  239. {  sResource List. Category: Display        Type: Video  }
  240. {  The following Id's are common to all Mode sResources in Display_Video  }
  241. {  functional sResources.  }
  242.     mBlockTransferInfo            = 5;                            {  slot block xfer info PER MODE  }
  243.     mMaxLockedTransferCount        = 6;                            {  slot max. locked xfer count PER MODE  }
  244.  
  245. {$ALIGN RESET}
  246. {$POP}
  247.  
  248. {$SETC UsingIncludes := ROMDefsIncludes}
  249.  
  250. {$ENDC} {__ROMDEFS__}
  251.  
  252. {$IFC NOT UsingIncludes}
  253.  END.
  254. {$ENDC}
  255.